package com.haoxuer.discover.user.data.entity;

import com.haoxuer.discover.data.entity.AbstractEntity;
import com.haoxuer.discover.user.data.enums.BindType;

import javax.persistence.*;

/**
 * 用户账号集合
 *
 */
@Entity
@Table(name = "user_identification")
public class UserBind extends AbstractEntity {

  @ManyToOne(fetch = FetchType.LAZY)
  private UserInfo user;

  private BindType bindType;

  @Column(length = 50)
  private String no;


  public BindType getBindType() {
    return bindType;
  }

  public void setBindType(BindType bindType) {
    this.bindType = bindType;
  }

  public String getNo() {
    return no;
  }

  public void setNo(String no) {
    this.no = no;
  }

  public UserInfo getUser() {
    return user;
  }

  public void setUser(UserInfo user) {
    this.user = user;
  }
}
